home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6099 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1012 b 

  1. Path: saimin.esd.sgi.com!kenton
  2. From: kenton@rahul.net (Ken Lee)
  3. Newsgroups: comp.windows.x,comp.lang.c
  4. Subject: Re: get text strings from keyboard
  5. Date: 22 Feb 1996 18:39:28 GMT
  6. Organization: X/Motif Consultant, http://www.rahul.net/kenton/index.shtml
  7. Sender: kenton@saimin.esd.sgi.com (Ken Lee)
  8. Message-ID: <4gid90$15o@murrow.corp.sgi.com>
  9. References: <Pine.SGI.3.91.960222115042.25886A-100000@mozart.bme.ohio-state.edu>
  10. NNTP-Posting-Host: saimin.esd.sgi.com
  11.  
  12. In article <Pine.SGI.3.91.960222115042.25886A-100000@mozart.bme.ohio-state.edu>,
  13. xiaoyi@mozart.bme.ohio-state.edu (Xiaoyi Wu) writes:
  14. |> what i am doing now is use KeyPress 
  15. |> mask to detect keyboard inputs, and i think i must be missing somehting 
  16. |> here since although XLookupString claims to fill a string buffer i am 
  17. |> only getting ONE character at a time.
  18.  
  19. I think you need to re-read your Xlib manual.  KeyPress events normally
  20. contain only one character at a time.
  21.  
  22. -- 
  23. Ken Lee, X/Motif Consulting, http://www.rahul.net/kenton/index.shtml
  24.